square root of imperfect number by long division method